import request from '@/utils/request'
import qs from "qs"
export default {

    //获取任务奖励设置数据
    getTaskInfo() {
        return request({
            url: `/api-user/task-reward/getTaskReward`,
            method: 'get'
        })
    },
    //更新任务奖励设置数据
    // updateTaskInfo(welcome, headPortrait, nickname, personalDetails, firstAttention, firstShare, firstEnshrine, firstShopping, firstEvaluate, login,
    //     signIn, share, invite, friendsFirstOrder, minPurchaseDays, continuousSignIn, continuousSignInExtra, shoppingConsumption, minCommodityPrice, 
    //     minActualPayment, maxSingleCommodity) {
    //     var data = qs.stringify({ welcome, headPortrait, nickname, personalDetails, firstAttention, firstShare, firstEnshrine, firstShopping, firstEvaluate, login,
    //         signIn, share, invite, friendsFirstOrder, minPurchaseDays, continuousSignIn, continuousSignInExtra, shoppingConsumption, minCommodityPrice, 
    //         minActualPayment, maxSingleCommodity })
    updateTaskInfo(formData){
        var data = qs.stringify(formData)
        return request({
            url: '/api-user/task-reward/updateTaskReward',
            method: 'post',
            data
        })
    }

}